// 首页组件样式
@use '../variables' as *;
.home {
    min-height: 100vh;
    position: relative;
}

// 主要内容区域样式
.main-content {
    min-height: calc(100vh - 64px); // 减去导航栏高度，避免出现空白
    position: relative;
    padding-top: 64px; // 为导航栏留出空间
}

.hero-section {
    height: calc(100vh - 64px); // 减去导航栏高度，实现满屏效果
    background: url('/src/assets/pic/hero-bg.png') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(30, 60, 114, 0.3) 0%, rgba(42, 82, 152, 0.3) 50%, rgba(102, 126, 234, 0.3) 100%);
        z-index: 1;
    }
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-text {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #333333;
    margin: 0 0 30px 0;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }
    &:hover::before {
        left: 100%;
    }
    &.primary {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        &:hover {
            transform: translateY(-3px);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
        }
    }
    &.secondary {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        &:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
        }
    }
}

// 动画效果
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

// 响应式设计
@media (max-width: 1200px) {
    .header {
        .search-box {
            width: 250px; // 稍微缩小搜索框宽度
        }
    }
}

@media (max-width: 1024px) {
    .header {
        .search-box {
            display: none; // 在中等屏幕下隐藏搜索框
        }
        .nav-menu {
            gap: 20px; // 减少导航项间距
        }
    }
}

@media (max-width: 768px) {
    .header {
        .header-content {
            padding: 0 15px;
        }
        .desktop-search {
            display: none;
        }
        .desktop-nav {
            display: none;
        }
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        .header-left {
            gap: 10px;
        }
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
}